class Task57_2:
    def run(self, s):
        result = []
        head = 1
        tail = 2
        sum = head + tail
        end = (s // 2) + (s % 2)
        while tail <= end:
            if sum == s:
                result.append([i for i in range(head, tail + 1)])
                tail += 1
                sum += tail
            elif sum < s:
                tail += 1
                sum += tail
            else:
                sum -= head
                head += 1
        return result
